package homeworke.qusetion22;

/**
 * Author：毕龙
 * Date: 2024/4/18 20:22
 */
public class SaleEmployee extends Employee{
    private double sales;
    private double rate;

    public double getSales() {
        return sales;
    }

    public void setSales(double sales) {
        this.sales = sales;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }
    @Override
    public double getSalary(int month) {
        return super.getSalary(month)+sales*rate;
    }
}
